package com.wzy.portfolio.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "股票基础信息")
@Data
public class StockBaseDto {

    @Schema(description = "股票名")
    private String stockName;

    @Schema(description = "股票编号")
    private String stockCode;

    @Schema(description = "股票类型 上证、深圳")
    private String type;

    @Schema(description = "最高价")
    private String maxPrice;

    @Schema(description = "最低价")
    private String minPrice;

    @Schema(description = "最新价")
    private String newPrice;

    @Schema(description = "回测点位")
    private double rate;

    @Schema(description = "财报日期")
    private String reportDate;

    @Schema(description = "净利润")
    private String attributableToParent;

    @Schema(description = "净利润增长率")
    private String attributableToParentRate;

    @Schema(description = "营业总收入")
    private String totalOperatingRevenue;

    @Schema(description = "营业总收入同比增长率")
    private String totalOperatingRevenueRate;

    @Schema(description = "财务状态")
    private String reportStatus;

    @Schema(description = "财务状态")
    private String desc;

    @Schema(description = "查询开始日期(仅东财网查历史数据使用)2023010")
    private String beg;

    @Schema(description = "查询结束日期(仅东财网查历史数据使用)2023010")
    private String end;

    @Override
    public String toString() {
        return "股票:" + stockName+",财报日期:"+reportDate+"财务状态:"+reportStatus+",营业总收入:"+totalOperatingRevenue+",营业总收入同比增长率:"+totalOperatingRevenueRate
                +",净利润:"+attributableToParent+",净利润增长率:"+attributableToParentRate;
    }
}
